package top.songxs.gmall.feign.product;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.feign.product.fallback.SkuDetailVoBySkuIdFeignClientFallBack;
import top.songxs.gmall.product.vo.SkuDetailVo;

@FeignClient(value = "service-product",fallback = SkuDetailVoBySkuIdFeignClientFallBack.class)
public interface SkuDetailVoBySkuIdFeignClient {

    @GetMapping("api/inner/product/getSkuDetailVo/{skuId}")
    public Result<SkuDetailVo> getSkuDetailVo(@PathVariable("skuId") Long skuId) ;
}
